package com.epic.eventmgr.service;

import org.springframework.stereotype.Component;

@Component("student") //使用Component注解,相当于添加<bean id="student" class="com.epic.eventmgr.service.Student" /> //把POJO类实例化到spring的IOC容器中)
public class Student {
    private String name = "student";

    public String getName(){
        return name;
    }
}
